import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';

/**
 * 二维码信息
 */
@Entity('qrcode_qrcode')
export class QrcodeQrcodeEntity extends BaseEntity {

  @Column({ comment: '后台用户ID', nullable: true })
  adminId: number;

  // 达人名称
  @Column({ comment: '达人名称', nullable: true })
  daren: string;

  @Column({ comment: '渠道ID', nullable: true })
  channelId: number;

  @Column({ comment: '二维码地址', nullable: true })
  qrcodeUrl: string;

  @Column({ comment: '海报地址', nullable: true })
  posterUrl: string;

  @Column({ comment: '状态', dict: ['禁用', '启用'], default: 1 })
  status: number;

  @Column({ comment: '类型', dict: ['普通', '推广'], default: 0 })
  type: number;

  // 门店ID
  @Column({ comment: '门店ID', default: 0 })
  shopId: number;
}
